
from web import create_app, Base, mysql_engine
from web.model.Agent import Agent
from web.model.Classify import Classify
from web.model.User import User

app = create_app()
if __name__ == '__main__':
    Base.metadata.create_all(mysql_engine ,tables=[
        User.__table__,
        Agent.__table__,
        Classify.__table__
    ]) # 自动创建所有的表